for m in range(1,10):
    for n in range(1,10):
        if m>=n:
            print('%s×%s=%2s'%(m,n,m*n),end=' ')
    print()
print('\n\n\n')
for i in range(1,10):
     for j in range(i,10):
         print("%d*%d=%2d" % (i,j,i*j),end=" ")
     print("")